package com.welbell.utlis;

import android.util.Log;

/**
 * Time: 2020/8/13
 * Author: tao
 * Description: 用于日志输出打印
 * Modification date:
 * Modified by:
 * Revised content:
 */
public class TLog {

    public static final boolean DEBUG = true;
    public static String TAG = "Temperature_Device ====>   ";

    private TLog() {
    }

    public static void d(String desc) {
        if (DEBUG)
            Log.d(TAG, desc);
    }

    public static void d(String tag, String desc) {
        if (DEBUG)
            Log.d(TAG + tag, desc);
    }

    public static void d(String tag, String desc, Throwable tr) {
        if (DEBUG)
            Log.d(TAG + tag, desc, tr);
    }

    public static void v(String desc) {
        if (DEBUG)
            Log.v(TAG, desc);
    }

    public static void v(String tag, String desc) {
        if (DEBUG)
            Log.v(TAG + tag, desc);
    }

    public static void v(String tag, String desc, Throwable tr) {
        if (DEBUG)
            Log.v(TAG + tag, desc, tr);
    }

    public static void w(String desc) {
        if (DEBUG)
            Log.w(TAG, desc);
    }

    public static void w(String tag, String desc) {
        if (DEBUG)
            Log.w(TAG + tag, desc);
    }

    public static void w(String tag, Throwable ioe) {
        if (DEBUG)
            Log.w(TAG + tag, ioe);
    }

    public static void w(String tag, String desc, Throwable e) {
        if (DEBUG)
            Log.w(TAG + tag, desc, e);
    }

    public static void i(String desc) {
        if (DEBUG)
            Log.i(TAG, desc);
    }

    public static void i(String tag, String desc) {
        if (DEBUG)
            Log.i(TAG + tag, desc);
    }

    public static void i(String tag, String desc, Throwable tr) {
        if (DEBUG)
            Log.i(TAG + tag, desc, tr);
    }

    public static void e(String desc) {
        if (DEBUG)
            Log.e(TAG, desc);
    }

    public static void e(String tag, String desc) {
        if (DEBUG)
            Log.e(TAG + tag, desc);
    }

    public static void e(String tag, String desc, Throwable tr) {
        if (DEBUG)
            Log.e(TAG + tag, desc, tr);
    }
}
